package cn.gz.ibix.ibix_library.account.loader;

import java.util.List;

import cn.gz.ibix.ibix_library.account.bean.Account;
import cn.gz.ibix.ibix_library.bean.ApiConfig;
import cn.gz.ibix.ibix_library.bean.RequestParamImpl;
import cn.gz.ibix.ibix_library.loader.BasePageLoaderImpl;
import cn.gz.ibix.library.http.RequestParam;
import cn.gz.ibix.library.loader.Listener;

/**
 * 项目名称：android_tool
 * <br>类描述：
 * <br>创建人：htliu
 * <br>创建时间：2018/4/25 17:36
 * <br>修改人:
 * <br>修改时间：2018/4/25 17:36
 * <br>修改备注：
 * <br>@version
 */

public class AccountLoader extends BasePageLoaderImpl<Account> {
    private AccountLoader() {
    }

    public static AccountLoader getInstance() {
        return SingletonHolder.INSTANCE;
    }

    @Override
    protected String api() {
        return "/account/list";
    }

    @Override
    protected RequestParam<Account> getRequestParam() {
        RequestParamImpl<Account> requestParam = new RequestParamImpl<>();
        requestParam.server(ApiConfig.Server.USER);
        return requestParam;
    }

    private static class SingletonHolder {
        private static final AccountLoader INSTANCE = new AccountLoader();
    }


}
